package br.com.hstar.client.util;

import java.util.HashMap;
import java.util.Map;

public class ClientSession {

	private Map properties = new HashMap(); 
	
	private static ClientSession clientSession = null;

	/**
	 * Default constructor
	 */
	private ClientSession() {
		super();
	}

	public static ClientSession getInstance() {
		if (clientSession==null) {
			clientSession = new ClientSession();
		}
		return clientSession;
	}
	
	public Object getProperty(String key) {
		if (properties.containsKey(key)) {
			return properties.get(key);
		}
		return null;
	}
	
	public void setProperty(String key, Object value) {
		properties.put(key, value);
	}
}